<%-- 
    Document   : index
    Created on : Feb 4, 2014, 8:24:57 AM
    Author     : GaspardP <gaspardp@kth.se>
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Recherche</title>
    </head>
    <body>
        <h1>Genre mapper</h1>
        <form action='/WSTP/search' method='GET'>
            <label for='genre'>Selection du genre musical</label>
            <select name='genre'>
                <c:forEach items="${requestScope.genres}" var="item">
                    <option value="${item.key}">
                        ${item.value}
                    </option>
                </c:forEach>
            </select>
            <input type='submit' value='Chercher' />
        </form>
        <form action='/WSTP/artisteServlet' method='GET'>
            <label>Cherche un artiste: </label>
            <input type = "text" name="artisteCherche" id="a"><input type="submit" value="chercher">
        </form>
    </body>
</html>
